package com.example.w.common.pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * wrtable
 * @author 
 */
@Data
public class Table implements Serializable {
    /**
     * 桌号
     */
    private Integer id;

    /**
     * 桌号
     */
    private Integer tableNumber;

    /**
     * 桌子人数
     */
    private Integer seats;

    /**
     * 桌子状态，0表示空，1表示有人
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public boolean isEmpty() {
        return status == 0;
    }

    public void setOccupied(boolean occupied) {
        this.status = (occupied? 1: 0);
    }
}